﻿






<!DOCTYPE html>
{{print_r($errors)}}
<html>
<head>
<title>飞饭 - 登录</title>
<meta name="keywords" content="飞饭,flymeal,飞饭网,网上订餐,外卖美食,西安订餐,西安外卖,外卖电话" />
<meta name="description" content="飞饭提供全西安最专业在线免费订餐服务，从您附近喜欢的餐厅订购美食，网上下单，送餐上门。订外卖，找飞饭" />
<meta http-equiv="Pragma" content="no-cache">
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="shortcut icon" type="image/x-icon" href="http://www.flymeal.cn:80/assets/images/favicon.ico" />
<link href="/Css/main.css" rel="stylesheet" type="text/css" media="all" />
<!--[if lt IE 9]><link href="/Css/ie_all.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
<!--[if lte IE 6]><link href="/Css/ie_6.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
<script type="text/javascript" src="/Scripts/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="/Scripts/jquery.easing.1.3.min.js"></script>
<script type="text/javascript" src="/Scripts/main.js"></script>
<link href="/Css/login.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="/Scripts/login.js"></script>
<script type="text/javascript" src="/Scripts/wb.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="/Scripts/dd.belatedpng.0.0.8a.min.js"></script>
<script type="text/javascript">DD_belatedPNG.fix('div,a , li, img');</script>
<![endif]-->
<style>
body,html {
	height: 100% !important;
	padding-bottom:0px !important;
}
</style>
</head>
<body>






<!-- <meta content="webkit" name="renderer"/> -->
<link href="/Css/header.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 8]>
	<link href="/Css/ie67.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<script src="/Scripts/jquery-1.11.1.min.js" type="text/javascript"></script>
<!--[if lte IE 8]>
	<script type="text/javascript" src="/Scripts/json2.min.js"></script>
<![endif]-->
<script type="text/javascript" src="/Scripts/jquery.easing.1.3.min.js"></script>
<script type="text/javascript" src="/Scripts/jquery.cookie.js"></script>
<div class="g-hd f-shadow" style="position: initial;overflow: visible;">
	<div class="g-panel f-14 f-f f-fwn" style="position: initial;overflow: visible;">
		<div class="left">
			<a class="l-hd download" href="/customer/mobile.html" target="_blank">手机客户端</a>
		</div>
		<div class="menu_pannel">



					<div class="right m-menu-width" id="loginDown">
						<span class="m-login" >
							<a href="/login" class="l-hd" id="login-id">登录</a>
							<a href="/register" class="l-hd">注册</a>
						</span>
					</div>


			<a id='m29'></a>
		</div>
		<div class="right">
			<a href="javascript:void(0);" class="l-hd" id="shoppingCartTitle">美食车(0)</a>
			<a href="/my/todayOrder" class="l-hd">我的订单</a>
			<a	href="/presentCenter" class="l-hd">积分换礼</a>
			<a href="#"	class="f-csd line">|</a>
		</div>
		<a class="l-logo " href="/" title="叫外卖 上飞饭" ></a>
	</div>
</div>
<div class="headerShadow" id="headerShadow">
	<div class="content_2" >
		<div class="ameche-close f-all" id="ameche-close"></div>
		<div class="ameche-content" id="content_2">暂无信息</div>
		<div class="ameche-ok">
		</div>
	</div>
	<div class="mask"></div>
</div>
<script type="text/javascript">
function showHeaderShadow(args){
	if(args.div_=='请先登陆'){
		//timer = setInterval(timeIn3,1000);
		$('#content_2').html("您未登录!<br/><div style='font-size:14px;' >您可<a class='c-ff6931' href='/login?backUrl=/jipinbiandang' >去登录</a>，或<a class='c-ff6931' href='javascript:void(0)' onclick='showHeaderShadowHidden()' >返回抢购页面</a>.</div>");
	}else{
		$('#content_2').html(args.div_);
	}
	if(args.callback!=undefined){
		args.callback();
	}
	$('#headerShadow').css({'display':'block'});
}
var s = 5,timer = '';
function timeIn3(){
	s--;
	$('#content_2').html("您未登录,<br/>您可<a class='c-ff6931' href='/login?backUrl=/jipinbiandang' >去登录</a>，或<a class='c-ff6931' href='javascript:void(0)' onclick='showHeaderShadowHidden()' >返回抢购页面</a>.");
	if(s==0){
		window.location = "/login?backUrl=/jipinbiandang";
	}
}
function showHeaderShadowHidden(){
	$('#headerShadow').css({'display':'none'});
}
function loginID(){
	var s_ = (window.location.href.replace("http://localhost:8080",'').replace("http://172.16.180.120:8080",'').replace('http://121514.vicp.cc','').replace('https://www.flymeal.cn','').replace('http://www.flymeal.cn',''));
	if(s_!=null&&(s_.indexOf('/logout')<0)){
		$('#login-id').attr('href',$('#login-id').attr('href')+"?backUrl="+s_);
	}
}
$(function(){
	loginID();
	$('#ameche-close').click(showHeaderShadowHidden);
	var menus = {
		show:function(){
           	$("#m-menu").css({"display":"block",
                   "height":"0px"});
           	$("#m-menu").animate({
                   "height":"190"
               },200,function(){});
		}
	};
	$('.username-label').hover(function(e){
		//menus.show();
	},function(e){
		//alert(e.target.className);
	});
    $("#loginDown").click(function(e){
    	/* if($(this).find('.username-label').length>0){
    		var menu = $("#m-menu");
            if($("#m-menu").css("display") == "none"){
            	$("#m-menu").css({"display":"block",
                    "height":"0px"});
            	$("#m-menu").animate({
                    "height":"190"
                },200,function(){});
            }else{
            	$("#m-menu").hide();
            }
    	}
        e.stopPropagation(); */
        /* e.preventDefault(); */
    });
    $("#m-menu li").click(function(e){
        var path = $(this).attr('path');
        if(path){
	        window.location = '' + path;
        }
        $("#m-menu").hide();
        e.stopPropagation();
        e.preventDefault();
    });

    var cookieFS = {
    	ordersNum:function(cookie_){
    		var totalNum = 0;
    		if(cookie_.productList!=null && cookie_.productList.length>0){
    			for (var int_ = 0; int_ < cookie_.productList.length; int_++) {
					totalNum += cookie_.productList[int_].num;
				}
    		}
    		return totalNum;
    	},
    	checkCart:function(){
    		var args_ = {
   					div_:"<div class='Restdif'><div class='f-all codemobile' ></div><div><div class='t rmobit'>"+
						"<div class='t23'>您选择的菜品低于起送价！</div>"+
					"<div class='actions'><div class='btn_91_28 f-radius-4 f-fr okmobile'>确定</div></div></div></div>",
					callback:function(){
						$('.Restdif .okmobile').click(function(){
							showHeaderShadowHidden();
						});
					}
			}
			showHeaderShadow(args_);
    	}
    };

	var str =  $.cookie('shoppingCart');
	if(str!=null&&jQuery.trim(str)!=''){
		var obj = '';
		try  {
			obj = eval('(' + str + ')');
			$('#shoppingCartTitle').html('美食车(' + cookieFS.ordersNum(obj) + ')');
		}catch(exception){
			$('#shoppingCartTitle').html('美食车(0)');
			return;
		}
	}else{
		$('#shoppingCartTitle').html('美食车(0)');
	}
	orderMsgs.initFromCookie();
	$("#shoppingCartTitle").click(function(e){
		e.preventDefault();
		var meishic = $.cookie('shoppingCart');
		if(meishic==null){
			var id_={supplierId:null,productList:[]};
			$.cookie('shoppingCart', JSON.stringify(id_), { path: '/', expires: 60*60*12 })
		}/* else{
			cookieFS.checkCart();
		} */
		window.location = "/mvc/shoppingCart";
	});
});
$(document).bind('click',function(ev){
    var ev=ev||window.event;
    var elem=ev.target||ev.srcElement;
    if(elem.id!="m-menu"){
        var menu = $("#m-menu");
        if(menu.css("display") !== "none"){
           //menu.hide();
        }
    }
    if($(elem).parents('#menu-catalog').length>0){
    	return false;
    }
    if(($(elem).parents('#list-detail').length==0)){
        $("#list-detail").hide();
    }
});


var orderMsgs = new orderMsgs();

function getCustomerId(){
	if($('#customerId').length!=0){
		return $('#customerId').val();
	}else{
		return "-1";
	}
}

function setCustomerMsg(customerMsg){
	var strHtml = '<ul>';
	var showFlag = 0;
	$('#msg').empty();
	if(customerMsg == null || trim(customerMsg) == ''){
		$('#msg').hide();
	}else{
		var msgs = customerMsg.split(';');
		for(var i=0; i<msgs.length; i++){
			var strs = msgs[i].split(':');
			if(msgs[i] == null || trim(msgs[i]) == ''){
				continue;
			}else if(strs[0] == 'unreadSiteMail'){
				if(parseInt(strs[1]) > 0){
					strHtml += '<li>' + strs[1] + '条新的站内信，<a id="siteMail" href="' + getRootPath() + '/my/message">点击查看</a></li>';
					showFlag++;
				}
			}else if(strs[0] == 'unapprovalOrder'){
				if(parseInt(strs[1]) > 0){
					strHtml += '<li>' + strs[1] + '个未评价订单，<a id="apprivalOrder" href="' + getRootPath() + '/my/orderHistory">点击查看</a></li>';
					showFlag++;
				}
			}else{
				switch(strs[1]){
					case '3':strs[1] = '已接收';showFlag++;break;
					case '4':strs[1] = '已派送';showFlag++;break;
					case '5':strs[1] = '已取消';showFlag++;break;
				}
				strHtml += '<li>1份订单' +strs[1] + '，<a id="' + strs[0] + '" class="diliveryOrder">点击查看</a></li>';
			}
		}
		if(showFlag<=0){
			return;
		}
		strHtml += "</ul>";
 		strHtml += '<a href="javascript:void(0);" class="nn-ce" id="crossD"></a>';
		$('#msg').append(strHtml);

		$('.diliveryOrder').unbind('click');
 		$('.diliveryOrder').click(function(){
 			var swf = getSWF('pushCustomerMsg');
 			swf.deleteOrderMsg(getCustomerId(), $(this).attr('id'));
			window.location = getRootPath() + '/my/todayOrder';
 	 	});

 		$('#crossD').unbind('click');
 		$('#crossD').click(function(){
 			$('#msg').hide();
 	 	});

		$('#msg').show();
	}
}
function getSWF(movieName){
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        return window[movieName];
    }
    else
    {
        return document[movieName];
    }
}
function orderMsgs(){
	this.customerId = null;
	this.msgs = new Array();
	this.initFromCookie = function(){
		var str =  $.cookie('orderMsgs');
		if(str!=null&&jQuery.trim(str)!=''){
			var obj = '';
			try  {
				obj = eval('(' + str + ')');
			}catch(exception){
				this.customerId = null;
				this.msgs = new Array();
				this.refrushCookie();
				return;
			}
			this.customerId = obj.customerId;
			this.msgs = obj.msgs;
		}else{
			this.customerId = null;
			this.msgs = new Array();
			this.refrushCookie();
		}
	};
	this.refrushCookie = function(){
		$.cookie('orderMsgs', JSON.stringify(this), { path: '/', expires: 60*60*4 });
	};
}

function orderMsg(){
	this.orderSequence = null;
	this.orderStatus = null;
}

/*----------------------------------------
 * 说明：javascript的加减乘除结果会有误差，这个函数返回较为精确的结果。
 ----------------------------------------*/
//除法函数
//用法：accDiv(arg1,arg2)
//@return arg1除以arg2的精确结果
//@remark 本函数压缩后可能出现t1、t2未初始化问题
function accDiv(arg1,arg2){
	var t1=0,t2=0,r1,r2;
	try{t1=arg1.toString().split(".")[1].length;}catch(e){}
	try{t2=arg2.toString().split(".")[1].length;}catch(e){}
	with(Math){
		r1=Number(arg1.toString().replace(".",""));
		r2=Number(arg2.toString().replace(".",""));
		return (r1/r2)*pow(10,t2-t1);
	}
}
//乘法函数
function accMul(arg1,arg2){
	var m=0,s1=arg1.toString(),s2=arg2.toString();
	try{m+=s1.split(".")[1].length;}catch(e){}
	try{m+=s2.split(".")[1].length;}catch(e){}
	return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m);
}
//加法函数
function accAdd(arg1,arg2){
	var r1,r2,m;
	try{r1=arg1.toString().split(".")[1].length;}catch(e){r1=0;}
	try{r2=arg2.toString().split(".")[1].length;}catch(e){r2=0;}
	m=Math.pow(10,Math.max(r1,r2));
	return (arg1*m+arg2*m)/m;
}
//减法函数
function accSub(arg1,arg2){
    var r1,r2,m,n;
    try{r1=arg1.toString().split(".")[1].length;}catch(e){r1=0;}
    try{r2=arg2.toString().split(".")[1].length;}catch(e){r2=0;}
    m=Math.pow(10,Math.max(r1,r2));
    //动态控制精度长度
    n=(r1>=r2)?r1:r2;
    return ((arg1*m-arg2*m)/m).toFixed(n);
}
//js中的toFixed方法也有精度问题
Number.prototype.toFixed=function(len){
	var add = 0,s;
	var s1 = this + "";
	var start = s1.indexOf(".");
	if(s1.substr(start+len+1,1)>=5){add=1;}
	var temp = Math.pow(10,len);
	s = Math.floor(this * temp) + add;
	return s/temp;
};
</script>

	<div id="container">
		<div class="top_space"></div>
		<div class="partl login">
			<div class="title">
				<span class="l">登录&nbsp;&nbsp;|</span>&nbsp;&nbsp;
				<a href="http://www.flymeal.cn:80/register" class="r">免费注册</a>
			</div>
			<form action="" method="post">
				{!!csrf_field()!!}
			<input type="hidden" name="loginType" value="local"/>
			<input type="hidden" name="backUrl" value="/loading.jsp"/>
			<table>

				<tr>
					<td class="text">账号</td>
					<td class="input">
						<div class="l"></div>
						<div class="m"><input type="text" name="name" tips="请输入您的用户名/邮箱" />
						</div>
						<div class="r"></div>
					</td>
				</tr>
				<tr>
					<td class="text">密码</td>
					<td class="input">
						<div class="l"></div>
						<div class="m"><input type="password" name="password" /></div>
						<div class="r"></div>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="forget_password">
						<a href="http://www.flymeal.cn:80/findPassword" class="blink">忘记密码?</a></td>
				</tr>
				<tr>
					<td colspan="2"><input class="btn_116_36 submit" type="submit" value="登录飞饭"/>
					</td>
				</tr>
			</table>
			</form>
			<div class="connect_login">
				<div class="text">您也可以用合作网站账号登录飞饭</div>
				<a href="https://api.weibo.com/2/oauth2/authorize?client_id=2875110651&response_type=code&redirect_uri=http://www.flymeal.cn/customer/login!login.action?loginType=sinaweibo" class="connect c_weibo"></a>
				<a href="https://graph.renren.com/oauth/authorize?client_id=127882&response_type=code&redirect_uri=http://www.flymeal.cn/customer/login!login.action?loginType=renren&display=page" class="connect c_renren"></a>
			</div>
		</div>
		<div class="partr">
			<div class="section6 sidepanel">
				<div class="t"></div>
				<div class="body">
					<div class="t1">还不是飞饭会员？</div>
					<a href="/register" class="btn_182_46 signinLink">免费注册飞饭</a>
					<div class="t2">只需<em>30秒！</em></div>
					<div class="t3">·累计积分兑换礼品<br />·收藏喜爱的餐馆和美食<br />·定制自己的营养计划<br />　……</div>
				</div>
				<div class="b"></div>
			</div>
		</div>
	</div>






<link href="/Css/footer.css" rel="stylesheet" type="text/css" />
<div class="footer">
    <div class="g-ft">
        <div class="normal f-f f-14">
            <div class="con">
                <div class="left">
                    <div>
                        <a href="javascript:void(0);" class="l-ft feedback_btn0">新版反馈</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="/my/openShop" class="l-ft">我要开店</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="/about/us" class="l-ft">联系我们</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="/about/recruit" target="_blank" class="l-ft">招聘精英</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="/about/problems" class="l-ft">帮助中心</a>
                    </div>
                    <div class="icp">© 2009 - 2014  飞饭  陕ICP备10006969号</div>
                </div>
                <div class="left">
                    <div class="center"><a href="http://wljg.xags.gov.cn/bscx.do?method=hddoc&amp;id=61013100001555" class="f-img" border="0"></a></div>
                </div>
                <div class="right">
                    <a href="/customer/mobile.html?ios=1" target="_blank"><img src="Images/d-apple.png"></a>
                    <a href="/customer/mobile.html" target="_blank"><img src="Images/d-android.png"></a>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="feedback_pop" class="pop f-ff-my">
	<div class="c">
		<div class="t">问题反馈</div>
		<div name="step_1">
			<ul class="type">
				<li t="1" tips="请描述您的问题或想法" class="t1 active">意见</li>
				<li t="2" tips="请描述您的问题" class="t2">疑问</li>
				<li t="3" tips="请描述一下这个错误和正确的信息" class="t3">纠错</li>
				<li t="4" tips="请详细说明举报的问题，请勿恶意举报" class="t4">举报</li>
				<li t="5" tips="觉得飞饭很棒就大声的告诉我们吧，您的称赞会让我们更用心做到最好" class="t5">表扬</li>
			</ul>
			<div class="report_type"><b>举报原因：</b><select name="report_type">
				<option value="">请选择</option>
				<option value="内容反动">内容反动</option>
				<option value="暴力色情">暴力色情</option>
				<option value="非法广告">非法广告</option>
				<option value="不文明语言">不文明语言</option>
				<option value="恶意网址举报">恶意网址举报</option>
			</select><input type="hidden" name="report_id" value="" /></div>
			<div><textarea name="content" class="content" tips=" "></textarea></div>
			<div class="rest_name"><input type="text" name="rest_name" tips="请填写餐馆名称" /></div>
			<div class="submit btn_82_27 btn_82_26">提交</div>
		</div>
		<div name="step_2">
			<div class="notify">为了您能够及时的得到反馈，请</div>
			<div class="login">
				<div class="sub">登录飞饭：</div>
				<div class="tip" style="color:#f00;">账号或密码输入错误，请重新输入</div>
				账号：<input type="text" name="uname" class="input_1" tips="请输入您的用户名/手机/邮箱" /><br />
				密码：<input type="password" name="upassword" class="input_1" />
				<div class="sub">或输入常用邮箱：</div>
				邮箱：<input type="text" name="uemail" class="input_1" tips="您的常用邮箱地址" />
			</div>
			<div class="submit btn_82_27 btn_82_26">提交</div>
			<div class="clear"></div>
		</div>
		<div name="step_3">
			<div class="alertText">请稍候……</div>
		</div>
		<div name="step_4">
			<div class="alertText">问题提交成功！</div>
		</div>
		<div name="step_5">
			<div class="alertText">好像出了点小问题，请稍后重试。</div>
		</div>
		<div class="tel">客服热线：029-82582110</div>
		<div class="close">&times;</div>
	</div>
	<div class="mask"></div>
</div>
<div style = "display:none;"><script src="/Scripts/stat.js" language="JavaScript"></script></div>
<script type="text/javascript">
function resetFooter_2(){
	 if($("#container").length==1){
	    	var arg_css = {'height':'auto'};
	    	if(($("#container").height()+$("#container").offset().top+130)>$(window).height()){
	    		$('.footer').css({'position':'relative'});
	    		arg_css.height = 'auto';
	    		$('body').css(arg_css);$('html').css(arg_css);
	    	}else{
	    		arg_css.height = '100%';
	    		$('.footer').css({'position':'absolute'});
	    		$('body').css(arg_css);$('html').css(arg_css);
	    	}
	    }
}
var feedback = {
		isLogin: typeof(ISLOGIN) == 'undefined' ? false : ISLOGIN,
		init: function(){
			$('.feedback_btn0').click(function(){
				feedback.isLogin = $('#loginHref').length > 0 ? false: true;
				$('#feedback_pop [name^=step_]').hide();
				$('.tip').hide();
				$('#feedback_pop [name=step_1]').show();
				var t = $(document).scrollTop()+$(window).height()/2-150;
				$('#feedback_pop .c').css('top', t+'px');
				$('#feedback_pop').show();
				if($('#feedback_pop [name=content]').hasClass('inputTips')) $('#feedback_pop .type li:first').click();
			});
			$('#feedback_pop .type li').click(function(){
				$('#feedback_pop .type li').removeClass('active');
				$(this).addClass('active');
				var t = $(this).attr('t');
				var content = $('#feedback_pop [name=content]');
				content.attr('tips', $(this).attr('tips')).removeClass('s');
				if(content.hasClass('inputTips')) content.val('').focusout();
				$('#feedback_pop .rest_name, #feedback_pop .report_type').hide();
				if(t == 3) {
					$('#feedback_pop .rest_name').show();
					content.addClass('s');
				}
				else if(t == 4) {
					$('#feedback_pop .report_type').show();
					content.addClass('s');
				}
			});
			$('#feedback_pop .submit').click(function(){
				var wrong = false;
				$('#feedback_pop [name=step_1] :input:visible').each(function(){
					if(trim($(this).val()) == '' || $(this).hasClass('inputTips')) {
						alert('请填写完整必要内容。');
						wrong = true;
						return false;
					}
				});
				if(wrong) return;
				if(feedback.isLogin) feedback.submit();
				else if($('#feedback_pop [name=step_1]').css('display') == 'none') {
					var uname = $('#feedback_pop [name=uname]');
					var upassword = $('#feedback_pop [name=upassword]');
					var uemail = $('#feedback_pop [name=uemail]');
					if((uname.val() == '' || upassword.val() == '' || uname.hasClass('inputTips') || upassword.hasClass('inputTips')) && (uemail.val() == '' || uemail.hasClass('inputTips'))) {
						alert('请至少选择一种方式。');
						return;
					}
					feedback.submit(uname.val(), upassword.val(), uemail.val());
				}
				else {
					$('#feedback_pop [name^=step_]').hide();
					$('#feedback_pop [name=step_2]').show();
					//if($.browser.msie && $.browser.version < 7) $('#feedback_pop .tel').hide().show();
				}
			});
		},
		submit: function(uname, upassword, uemail) {
			$('#feedback_pop [name^=step_]').hide();
			var params = {
				t: 0,
				q_cat: $('#feedback_pop .type .active').attr("t"),
				q_content: $('#feedback_pop [name=content]').val(),
				q_report_type:null,
				q_report_id:0,
				q_rest_name:null,
				uname:null,
				upassword:null,
				uemail:null
			};
			var report_type = $('#feedback_pop [name=report_type]').val();
			var report_id = $('#feedback_pop [name=report_id]').val();
			var rest_name = $('#feedback_pop input[name=rest_name]').val();
			var page_rest_name = $("#companyName").val();
			if(report_type != '') params.q_report_type = report_type;
			if(report_id != '') params.q_report_id = report_id;
			if(rest_name != '') {
				params.q_rest_name = rest_name;
			} else {
				params.q_rest_name = page_rest_name;
			}
			if(!feedback.isLogin) {
				if(uname != '' && upassword != '') {
					params.t = 1;
					params.uname = uname;
					params.upassword = upassword;
				}
				else {
					params.t = 2;
					params.uemail = uemail;
				}
			}
			$.ajax({
		        url : getRootPath()+'/customerajax/feedbackinfo!addFeedback.action',
		        data: params,
		        cache : false,
		        async : true,
		        type : "POST",
		        dataType : 'json',
		        beforeSend	: function(xmlHttpRequest){
		        	$('#feedback_pop [name=step_3]').show();
				},
		        success : function (data){
		        	$('#feedback_pop [name=step_3]').hide();
		        	feedback.done(data);
		        },
		        error	:	function(){
		        	$('#feedback_pop [name=step_5]').show();
		        }
		    });
		},
		done: function(d) {
			if(d.errorCode != '') {
				$('#feedback_pop [name=step_2]').show();
				$('.tip').show();
				return;
			}
			$('#feedback_pop [name^=step_]').hide();
			$('#feedback_pop [name=step_4]').show();
			if((d.q_cat == 3)&&(d.t == 0||d.t == 1)){
				pointsPop.gen(20, '#feedback_pop [name=step_4] .alertText');
			}
			$('#feedback_pop .type li').removeClass('active');
			$('#feedback_pop .type li:first').addClass('active');
			$('#feedback_pop [name=content]').val('').focusout();
			$('#feedback_pop [name=uname]').val('').focusout();
			$('#feedback_pop [name=upassword]').val('');
			$('#feedback_pop [name=uemail]').val('').focusout();
		}
};
function initPopup() {
	//if($.browser.msie && $.browser.version < 7) $('.pop .mask').css('height', $(document).height()+'px');
	$('.pop .close').click(function(){$(this).parent().parent().hide();});
}
$(function(){
	feedback.init();
	initPopup();
	//resetFooter();
	resetFooter_2();
	var toTop = {
			_:function(){
				$("#i-toTop").click(function(){
					$('html,body').animate({scrollTop:0},500);
				});
			}
	};
	toTop._();
});
$(document).bind('click',function(ev){
    var ev=ev||window.event;
    var elem=ev.target||ev.srcElement;
    resetFooter_2();
});
$(window).resize(function(){
	resetFooter_2();
});
function init(){}
function initBody(){}
//trim
 function trim(str) {
	//var str = str.replace(/^\s\s*/, ''),
	ws = /\s/,
	i = str.length;
	while (ws.test(str.charAt(--i))){}
	return str.slice(0, i + 1);
}
function getRootPath(){
	return window.location.protocol+'//'+window.location.host;
}
function resetFooter(){}


</script>
</body>
</html>
